﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A87 RID: 2695
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LobbyModifyPlayerInfoCsReq : IMessage<LobbyModifyPlayerInfoCsReq>, IMessage, IEquatable<LobbyModifyPlayerInfoCsReq>, IDeepCloneable<LobbyModifyPlayerInfoCsReq>, IBufferMessage
	{
		// Token: 0x17002207 RID: 8711
		// (get) Token: 0x0600789B RID: 30875 RVA: 0x0014226F File Offset: 0x0014046F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LobbyModifyPlayerInfoCsReq> Parser
		{
			get
			{
				return LobbyModifyPlayerInfoCsReq._parser;
			}
		}

		// Token: 0x17002208 RID: 8712
		// (get) Token: 0x0600789C RID: 30876 RVA: 0x00142276 File Offset: 0x00140476
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LobbyModifyPlayerInfoCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002209 RID: 8713
		// (get) Token: 0x0600789D RID: 30877 RVA: 0x00142288 File Offset: 0x00140488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LobbyModifyPlayerInfoCsReq.Descriptor;
			}
		}

		// Token: 0x0600789E RID: 30878 RVA: 0x0014228F File Offset: 0x0014048F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyModifyPlayerInfoCsReq()
		{
		}

		// Token: 0x0600789F RID: 30879 RVA: 0x00142298 File Offset: 0x00140498
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyModifyPlayerInfoCsReq(LobbyModifyPlayerInfoCsReq other) : this()
		{
			this.type_ = other.type_;
			this.lobbyExtraInfo_ = ((other.lobbyExtraInfo_ != null) ? other.lobbyExtraInfo_.Clone() : null);
			this.nLNGJCJLDFO_ = other.nLNGJCJLDFO_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060078A0 RID: 30880 RVA: 0x001422F0 File Offset: 0x001404F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyModifyPlayerInfoCsReq Clone()
		{
			return new LobbyModifyPlayerInfoCsReq(this);
		}

		// Token: 0x1700220A RID: 8714
		// (get) Token: 0x060078A1 RID: 30881 RVA: 0x001422F8 File Offset: 0x001404F8
		// (set) Token: 0x060078A2 RID: 30882 RVA: 0x00142300 File Offset: 0x00140500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyModifyType Type
		{
			get
			{
				return this.type_;
			}
			set
			{
				this.type_ = value;
			}
		}

		// Token: 0x1700220B RID: 8715
		// (get) Token: 0x060078A3 RID: 30883 RVA: 0x00142309 File Offset: 0x00140509
		// (set) Token: 0x060078A4 RID: 30884 RVA: 0x00142311 File Offset: 0x00140511
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerExtraInfo LobbyExtraInfo
		{
			get
			{
				return this.lobbyExtraInfo_;
			}
			set
			{
				this.lobbyExtraInfo_ = value;
			}
		}

		// Token: 0x1700220C RID: 8716
		// (get) Token: 0x060078A5 RID: 30885 RVA: 0x0014231A File Offset: 0x0014051A
		// (set) Token: 0x060078A6 RID: 30886 RVA: 0x00142322 File Offset: 0x00140522
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NLNGJCJLDFO
		{
			get
			{
				return this.nLNGJCJLDFO_;
			}
			set
			{
				this.nLNGJCJLDFO_ = value;
			}
		}

		// Token: 0x060078A7 RID: 30887 RVA: 0x0014232B File Offset: 0x0014052B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LobbyModifyPlayerInfoCsReq);
		}

		// Token: 0x060078A8 RID: 30888 RVA: 0x0014233C File Offset: 0x0014053C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LobbyModifyPlayerInfoCsReq other)
		{
			return other != null && (other == this || (this.Type == other.Type && object.Equals(this.LobbyExtraInfo, other.LobbyExtraInfo) && this.NLNGJCJLDFO == other.NLNGJCJLDFO && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060078A9 RID: 30889 RVA: 0x0014239C File Offset: 0x0014059C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Type != LobbyModifyType.None)
			{
				num ^= this.Type.GetHashCode();
			}
			if (this.lobbyExtraInfo_ != null)
			{
				num ^= this.LobbyExtraInfo.GetHashCode();
			}
			if (this.NLNGJCJLDFO != 0U)
			{
				num ^= this.NLNGJCJLDFO.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060078AA RID: 30890 RVA: 0x00142410 File Offset: 0x00140610
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060078AB RID: 30891 RVA: 0x00142418 File Offset: 0x00140618
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060078AC RID: 30892 RVA: 0x00142424 File Offset: 0x00140624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Type != LobbyModifyType.None)
			{
				output.WriteRawTag(8);
				output.WriteEnum((int)this.Type);
			}
			if (this.lobbyExtraInfo_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.LobbyExtraInfo);
			}
			if (this.NLNGJCJLDFO != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.NLNGJCJLDFO);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060078AD RID: 30893 RVA: 0x00142498 File Offset: 0x00140698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Type != LobbyModifyType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Type);
			}
			if (this.lobbyExtraInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.LobbyExtraInfo);
			}
			if (this.NLNGJCJLDFO != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NLNGJCJLDFO);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060078AE RID: 30894 RVA: 0x00142508 File Offset: 0x00140708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LobbyModifyPlayerInfoCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Type != LobbyModifyType.None)
			{
				this.Type = other.Type;
			}
			if (other.lobbyExtraInfo_ != null)
			{
				if (this.lobbyExtraInfo_ == null)
				{
					this.LobbyExtraInfo = new PlayerExtraInfo();
				}
				this.LobbyExtraInfo.MergeFrom(other.LobbyExtraInfo);
			}
			if (other.NLNGJCJLDFO != 0U)
			{
				this.NLNGJCJLDFO = other.NLNGJCJLDFO;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060078AF RID: 30895 RVA: 0x00142584 File Offset: 0x00140784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060078B0 RID: 30896 RVA: 0x00142590 File Offset: 0x00140790
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 42U)
					{
						if (num != 104U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.NLNGJCJLDFO = input.ReadUInt32();
						}
					}
					else
					{
						if (this.lobbyExtraInfo_ == null)
						{
							this.LobbyExtraInfo = new PlayerExtraInfo();
						}
						input.ReadMessage(this.LobbyExtraInfo);
					}
				}
				else
				{
					this.Type = (LobbyModifyType)input.ReadEnum();
				}
			}
		}

		// Token: 0x04002E21 RID: 11809
		private static readonly MessageParser<LobbyModifyPlayerInfoCsReq> _parser = new MessageParser<LobbyModifyPlayerInfoCsReq>(() => new LobbyModifyPlayerInfoCsReq());

		// Token: 0x04002E22 RID: 11810
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002E23 RID: 11811
		public const int TypeFieldNumber = 1;

		// Token: 0x04002E24 RID: 11812
		private LobbyModifyType type_;

		// Token: 0x04002E25 RID: 11813
		public const int LobbyExtraInfoFieldNumber = 5;

		// Token: 0x04002E26 RID: 11814
		private PlayerExtraInfo lobbyExtraInfo_;

		// Token: 0x04002E27 RID: 11815
		public const int NLNGJCJLDFOFieldNumber = 13;

		// Token: 0x04002E28 RID: 11816
		private uint nLNGJCJLDFO_;
	}
}
